package com.atguigu.springcloud.service;



import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CLOUD-PAYMENT-HYSTRIX-SERVICE",fallback = FeignFallbackService.class)
public interface FeignHystrixOrderService {

    @GetMapping("/payment/hystrix/paymentInfo_OK/{id}")
    public String paymentInfo_OK(@PathVariable("id") Long id);

    @GetMapping("/payment/hystrix/paymentInfo_Timeout/{id}")
    public String paymentInfo_Timeout(@PathVariable("id") Long id);

}
